-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[asyncpg] Shouldn't capture query parameters by default #854
[asyncpg] Shouldn't capture query parameters by default #854
Conversation
I signed it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some notes and thoughts
ext/opentelemetry-ext-asyncpg/src/opentelemetry/ext/asyncpg/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-asyncpg/src/opentelemetry/ext/asyncpg/__init__.py
Outdated
Show resolved
Hide resolved
Thanks for doing this, I think this default behavior is much better! We should probably also do this for the other DB integrations, I'll open a separate issue. It looks like a few of them use the opentelemetry-python/ext/opentelemetry-ext-dbapi/src/opentelemetry/ext/dbapi/__init__.py Line 312 in f8e947c
|
9bd26a2
to
a72e0be
Compare
@HiveTraum @aabmass fixed what I'd broken, ptal! :D |
Gentle poke for reviews :D |
ping @aabmass @HiveTraum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I am in favor of these defaults :) but I am not an official reviewer
@thomasdesr This PR has two changes that we can separate: disabling the setting of the |
@majorgreys 👍 I like this plan. I'll pull the masking out of the PR this evening. |
9d6eadf
to
dad3b4c
Compare
@majorgreys fixed! ptal :D I took a look at the circleci failures and I believe they're unrelated? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR 👍
Thanks for the reviews!! |
Including parameterized query parameters in the span's metadata probably shouldn't be the default since they often contain sensitive data (e.g. user session tokens, hashed user passwords, etc).
To fix that this PR: